#pragma once
#include <iostream>
#include <string>
#include <list>
#include <fstream>

using namespace std;

namespace loggingService{

	enum LoggLevel{
		debug,
		info,
		warning,
		error
	};

	class Logger{

	private:
		Logger();	
		ofstream logfile;
		static Logger* instance;
		void logfile_close();
		void logfile_open();
		void log_beginofline(LoggLevel);
		static string Logger::LOGFILENAME;
	public:
	
		~Logger();
		static Logger* getLogger();
		void log(LoggLevel, string);
		static void setlogdir(string);

	};

};